@include('admin.header')
    <!-- Editor-->
    <link rel="stylesheet" href="{{asset('admin/plugins/bootstrap-wysihtml5/css/bootstrap-wysihtml5.css')}}">
    <!-- Fonts -->
    <!-- <link href='http://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700,900,300italic,400italic,600italic,700italic,900italic' rel='stylesheet' type='text/css'>
    <link href='http://fonts.googleapis.com/css?family=Open+Sans:400,700' rel='stylesheet' type='text/css'> -->
    <!-- Feature detection -->
    <script src="{{asset('admin/js/modernizr-2.6.2.min.js')}}"></script>
    <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
    <script src="assets/js/html5shiv.js"></script>
    <script src="assets/js/respond.min.js"></script>
    <![endif]-->
</head>

<body>
    <section id="container">
        @include('admin.nav')
        <!--sidebar start-->
        @include('admin.laside')
        <!--sidebar end-->
        <!--main content start-->
        <section class="main-content-wrapper">
            <section id="main-content">
                <div class="row">
                    <div class="col-md-12">
                        <!--breadcrumbs start -->
                        <ul class="breadcrumb">
                            <li><a href="#">控制台</a>
                            </li>
                            <li>活动</li>
                            <li class="active">文章发布</li>
                        </ul>
                        <!--breadcrumbs end -->
                        <h1 class="h1"></h1>
                    </div> 
                </div>

            <!--wenz-->
            <form role="form" action='' method='post' enctype='multipart/form-data'>
                {!!csrf_field()!!}
            <div class="form-group">
                <label class="col-sm-2 control-label" style="margin:10px 0 0 20px;">
                    <span style='font-size:16px;'>文章标题</span></label>
                <div class="col-sm-6">
                    <input type="text" name='title' class="form-control" style="margin:0px 0 0 -30px;">
                </div>
                                     
            </div>
               <!-- 栏目 -->
             <div class="form-group" style='margin:30px 0 0 185px;'>
                <select class="form-control" style='width:200px;' name='style'>
                    @foreach($cats as $cat)
                    <option value="{{$cat->style}}">{{$cat->style}}</option>
                    @endforeach
                </select>
                <input type="hidden" name='cat_id' value="{{$cat->cat_id}}">
            </div> 
            <!-- 作者 -->
            <div class="form-group">
                <div>
                <label class="col-sm-2 control-label" style="margin:45px 0 0 20px;">
                    <span style='font-size:16px'>文章作者</span></label>
                </div> 
                <div class="col-sm-6">
                <input type="text" class="form-control" name='username' style="margin:35px 0 0 -30px;width:120px;">
                </div>
                                       
            </div>
            <!-- 清除浮动 -->
            <div id='clr' style="clear:both;"></div>
            
            
            <!-- 关键词 -->
            <div class="form-group" style="clear:left;">
                <label class="col-sm-1 control-label" style="margin:40px 0px 20px 20px;">
                    <span style='font-size:16px;'>关键词</span></label>
                <div class="col-sm-6">
                <input type="text" class="form-control" name='keywords' style="margin:35px 0px 40px 58px;width:150px;">
                </div>
                                       
            </div>            
            <!-- 粘贴结束 -->
                <div class="row">
                  
                    <div class="col-md-12">
                        <div class="panel panel-default">
                            <div class="panel-heading">
                                <h3 class="panel-title" style='font-size:20px;font-weight:600'>内容编辑</h3>
                                <div class="actions pull-right">
                                    <i class="fa fa-chevron-down"></i>
                                    <i class="fa fa-times"></i>
                                </div>
                            </div>
                            <div class="panel-body">
                                <textarea name="content" id="editor1" rows="10" cols="80">
            
                                </textarea>
                            </div>
                         
                    
                <div class="form-group" style='clear:both;padding:0 30px;margin:20px 0 10px 0;'> 
                <label for="exampleInputFile">文件上传</label>
                <input type="file" name='thumb' id="exampleInputFile">
                <!-- <p class="help-block">Example block-level help text here.</p> -->
            </div>
            <button type="submit" class="btn btn-primary" style='float:right;margin:-60px 15px 0 0;'>提交</button>
                </div>
                </div>
            </div> 
        </form>
    </section>
</section>
        <!--main content end-->
        <!--sidebar right start-->
        @include('admin.raside')
        <!--sidebar right end-->
    </section>
    <!--Global JS-->
    <script src="{{asset('admin/js/jquery-1.10.2.min.js')}}"></script>
    <script src="{{asset('admin/plugins/bootstrap/js/bootstrap.min.js')}}"></script>
    <script src="{{asset('admin/plugins/waypoints/waypoints.min.js')}}"></script>
    <script src="{{asset('admin/js/application.js')}}"></script>
    <!--Page Level JS-->
    <script src="{{asset('admin/plugins/bootstrap-wysihtml5/js/wysihtml5-0.3.0.js')}}"></script>
    <script src="{{asset('admin/plugins/bootstrap-wysihtml5/js/bootstrap3-wysihtml5.js')}}"></script>
    <script src="{{asset('admin/plugins/ckeditor/ckeditor.js')}}"></script>
    <script>
    $(document).ready(function() {
        $('.textarea').wysihtml5();

        CKEDITOR.replace('editor1');
    });
    </script>

</body>

</html>
